import fetch from './request.js'

//验证码局部验证的api
function getPhoneCodeApi(data){
    return fetch({
        url:'/sendsms',
        method:'post',
        data:data
    })
}


 // 注册账号的api
 function registerUserApi(data){
     return fetch({
         url:"/register",
         method:"post",
         data  //简写，等于data:data
     })
 }


export{getPhoneCodeApi,registerUserApi}